package org.benjamin.lending.service;

import org.benjamin.lending.domain.entity.BorrowInfo;
import org.benjamin.lending.domain.form.AuditForm;
import org.benjamin.lending.domain.form.BorrowIndex;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BorrowService {
	
	void createBorrow(BorrowInfo borrowInfo,String username);
	
	Page<BorrowInfo> findBorrowPage(BorrowIndex borrowIndex,Pageable pageable);
	
	BorrowInfo findByBorrowEntity(Integer borrowId);
	
	void auitBorrow(AuditForm auditForm);

	void deleteEntity(Integer borrowId);

}
